<template>
  <div class="game-promo-page">
    <!-- 主横幅区域 -->
    <div class="main-banner">
      <div class="banner-content">
        <div class="game-title">阴阳师</div>
        <div class="promo-text">百万同行为珍</div>
        <div class="event-date">9月10日九周年版本开启</div>
        <button class="enter-btn">进入官网</button>
      </div>
    </div>

    <!-- 下载区域 -->
    <div class="download-section">
      <div class="download-cards">
        <div class="download-card">
          <div class="platform-icon apple-icon"></div>
          <div class="platform-name">App Store</div>
        </div>
        <div class="download-card">
          <div class="platform-icon android-icon"></div>
          <div class="platform-name">安卓下载</div>
        </div>
        <div class="download-card">
          <div class="platform-icon pc-icon"></div>
          <div class="platform-name">桌面下载</div>
        </div>
        <div class="download-card qr-card">
          <div class="qr-code"></div>
          <div class="qr-text">扫码下载</div>
        </div>
      </div>
    </div>

    <!-- 底部信息 -->
    <div class="footer-info">
      <div class="copyright">© 网易游戏 版权所有</div>
      <div class="rating">适龄提示：8+</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'GamePromoView'
}
</script>

<style scoped>
.game-promo-page {
  background-color: #0f0a05;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 主横幅样式 */
.main-banner {
  position: relative;
  height: 80vh;
  background-image: linear-gradient(rgba(15, 10, 5, 0.7), rgba(15, 10, 5, 0.4)), url('@/assets/game-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  text-align: center;
  padding: 20px;
  z-index: 2;
}

.game-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 6rem;
  color: #ffd700;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.promo-text {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.event-date {
  font-size: 1.2rem;
  color: #ffd700;
  margin-bottom: 40px;
}

.enter-btn {
  background-color: #b82222;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(184, 34, 34, 0.4);
}

.enter-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(184, 34, 34, 0.6);
}

/* 下载区域样式 */
.download-section {
  padding: 50px 0;
  background-color: rgba(15, 10, 5, 0.9);
}

.download-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.download-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  width: 150px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.download-card:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-10px);
}

.platform-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
}

.apple-icon {
  background-image: url('@/assets/apple-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: white;
}

.android-icon {
  background-image: url('@/assets/android-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.pc-icon {
  background-image: url('@/assets/pc-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: white;
}

.qr-code {
  width: 80px;
  height: 80px;
  background-color: white;
  margin-bottom: 10px;
}

.platform-name {
  color: #ffd700;
  font-size: 1rem;
}

.qr-text {
  color: #ffd700;
  font-size: 0.9rem;
}

/* 页脚样式 */
.footer-info {
  text-align: center;
  padding: 20px 0;
  background-color: #0f0a05;
  color: #888;
  font-size: 0.9rem;
}
</style>